import {Injectable} from '@angular/core';
import {HttpService} from '@kylin/http';

@Injectable({
  providedIn: 'root'
})
export class InfiniteScrollService {
  path = '/scroll';

  constructor(private http: HttpService) {
  }

  fetchScrollData(): Promise<any> {
    return this.http.get(this.path).catch(err => {
      console.warn(err);
    });
  }
}
